package com.wlz.aop.earlyAop;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * @author wlz
 * @date 2022-05-28  4:24 下午
 */
public class MyLogAdvice implements MethodBeforeAdvice {
	@Override
	public void before(Method method, Object[] args, Object target) throws Throwable {
		String methodName = method.getName();

		System.out.println("执行目标方法《" + methodName + "》的前置通知，入参 " + Arrays.asList(args));
	}
}
